<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>About methods</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY class="refs">
<h1>About methods</h1>

<p>Methods enable you to access functionality within the HTML Help ActiveX control through the use of a scripting language, such as JavaScript or Visual Basic Scripting Edition. Generally, methods use the information specified in the <code><a href="ocx_syntax.htm">&lt;PARAM&gt;</a></code> tags of the specified HTML Help ActiveX control to determine what functionality is actually to be invoked.<p>

<p>The following example uses the <a href="ocx_mclick.htm">Click</a> method to invoke a <a href="ocx_commands.htm">command</a>:</p>

<p><code>
&lt;A HREF=JavaScript:<i>related</i>.Click()&gt;Example&lt;/A&gt;
</code></p>

<p>where <code>JavaScript</code> is the scripting language, <code>related</code> is the ID of the HTML Help ActiveX control being referenced, <code>Click()</code> is the method, and <code>Example</code> is the text link. The <b>Click()</b> method requires that the control contain <code>&lt;PARAM&gt;</a></code> tags that specify which command to invoke.</p>

<p>Some methods do not require any parameters to access functionality within the HTML Help ActiveX control. In these cases, if <code>&lt;PARAM&gt;</a></code> tags are present in a referenced control, they are ignored by the method being called. This lets you reuse an existing instance of the control in your HTML file.</p>

<p>In addition, you can call multiple methods from a single instance of the HTML Help ActiveX control. For example, if you are already using an instance of the control to call the <b>Related Topics</b> command, you can reference the ID of that same control to call the <b>TextPopup</b> method.</p>

<p>If you need to <a href="ocx_inserting.htm">insert</a> a new instance of the control to call a method that does not require parameters, you can omit the <code>&lt;PARAM&gt;</a></code> tags from the <code>&lt;OBJECT&gt;</a></code> tag as shown in the following example:</p>

<p><pre><code>
&lt;OBJECT
<br>id=<i>for_script</i>
<br>type=&quot;application/x-oleobject&quot;
<br>classid=&quot;clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11&quot;
<br>&gt;
<br>&lt;/OBJECT&gt;
</pre></code></p>

<p>where <code>for_script</code> is the ID of the HTML Help ActiveX control that you will reference to call a method. Methods that do not require <code>&lt;PARAM&gt;</a></code> tags are listed in the table, below.</p>

<h2>Methods quick reference</h2>

<table border="1" cellpadding="0" cellspacing="0">
<tr>
<th>
<b>Method</b>
</th>
<th>
<b>Use with a compiled help file</b>
</th>
<th>
<b>Use with uncompiled HTML files</b>
</th>
<th>
<b>Does not require <code>&lt;PARAM&gt;</code> tags</b>
</th>
</tr>

<tr>
<td valign="top">
<a href="ocx_mclick.htm">Click</a></li>
</td>
<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<font color="White">...</font>
</td>
</tr>

<tr>
<td valign="top">
<a href="ocx_mclick.htm">HHClick</a></li>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<font color="White">...</font>
</td>
</tr>

<tr>
<td>
<a href="ocx_mprint.htm">Print</a>
</td>
<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<font color="White">...</font>
</td>
</tr>

<tr>
<td>
<a href="ocx_msyncurl.htm">SyncURL</a>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<font color="White">...</font>
</td>
</tr>

<tr>
<td>
<a href="ocx_mtcard.htm">TCard</a>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<font color="White">...</font>
</td>

<td align=center>
<font color="White">...</font>
</td>
</tr>

<tr>
<td>
<a href="ocx_mtextpopup.htm">TextPopup</a>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>

<td align=center>
<b>X</b>
</td>
</tr>
</table>


<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_ov.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_ov.htm">About the HTML Help ActiveX control</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

<!--start keywords--->

<!--end keywords--->


</BODY>
</HTML>
